package org.summer.lawyer.domain.vo.spuorder;

import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.summer.common.excel.annotation.ExcelEnumFormat;
import org.summer.common.excel.convert.ExcelEnumConvert;
import org.summer.lawyer.constant.enums.DispatchOrderStatus;
import org.summer.lawyer.domain.vo.spuorderassign.SpuOrderAssignVo;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 *
 */
@Data
@AutoMapper(target = SpuOrderAssignVo.class)
public class SpuOrderExport implements Serializable {


    @Serial
    private static final long serialVersionUID = 8123135220428094221L;

    @ExcelProperty(value = "订单号")
    private String orderNumber;

    @ExcelProperty(value = "订单状态", index = 1, converter = ExcelEnumConvert.class)
    @ExcelEnumFormat(enumClass = DispatchOrderStatus.class, textField = "info")
    private String dispatchStatus;

    /**
     * 服务类型
     */
    @ExcelProperty(value = "服务名称")
    private String serviceType;

    /**
     * 联系电话
     */
    @ExcelProperty(value = "联系电话")
    private String contactPhone;

    /**
     * 下单用户姓名
     */
    @ExcelProperty(value = "用户")
    private String userName;

    /**
     * 下单时间
     */
    @ExcelProperty(value = "下单时间")
    private Date orderTime;

    /**
     * 订单金额（单位元）
     */
    @ExcelProperty(value = "金额(元)")
    private Long amount;

    /**
     * 支付时间
     */
    @ExcelProperty(value = "支付时间")
    private Date paymentTime;

    /**
     * 完成时间
     */
    @ExcelProperty(value = "完成时间")
    private Date finishedTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String orderRemark;

    @ExcelProperty(value = "指派律师")
    private String lawFirmName;


}
